import {
    Articles,
    ArticlesResponse,
    Channel,
    UserChannelResponse,
  } from '@/types/data'
  import { RootState } from '@/types/store'
  import { http } from '@/utils/http'
  import { createAsyncThunk, createSlice, PayloadAction } from '@reduxjs/toolkit'
  
  import differenceBy from 'lodash/differenceBy'
  import sortBy from 'lodash/sortBy'
  
  import dayjs from 'dayjs'
  // 国际化，启用中文
  import 'dayjs/locale/zh-cn'
  // 相对日期插件
  import relativeTime from 'dayjs/plugin/relativeTime'
  dayjs.extend(relativeTime)
  dayjs.locale('zh-cn')
  